doctype html
html
  head
    title= title
    link(rel='stylesheet', href='/stylesheets/style.css')
    link(rel='stylesheet', href='/stylesheets/bootstrap.css')
    link(rel='stylesheet', href='/stylesheets/bootstrap-responsive.css')
  body
    div(class="navbar navbar-fixed-top")
      div(class="navbar-inner")
        div(class="container")
          - if (success)
            div(class="alert alert-success")
              = success
          - if (error) 
            div(class="alert alert-error")
              = error
          a(class="btn btn-navbar",data-toggle="collapse",data-target=".nav-collapse")
            span(class="icon-bar")
            span(class="icon-bar")
            span(class="icon-bar")
          a(class="brand",href="/") Microblog
          div(class="nav-collapse")
            ul(class="nav")
              li(class="active")
                a(href="/") 首页
              //- li
              //-   a(href="/login") 登入
              //- li
              //-   a(href="/reg") 注册
              - if (!user) 
                li
                  a(href="/login") 登入
                li
                  a(href="/reg") 注册
              - else 
                li
                  a(href="/logout") 登出
    div(id="container",class="container")
    block content
    hr
    footer
      p
        a(href='/',target='_blank') BBB
    script(src="/javascripts/jquery.js")
    script(src="/javascripts/bootstrap.js")

